<ul>
<foreach name="list" item="v" key="k" >    
        <li>
            <span class="tree_span" data-id="<{$v[user_id]}>">
                 <i class="icon-folder-open"></i>
                 <{$v['user_id']}>:
                 <if condition="$v['username'] neq null">
                         <{$v['username']}>
                 <elseif condition="$v['user_phone'] neq null" />
                     <{$v['mobile']}>
                 </if>
             </span>                                                
        </li>
</foreach>
</ul>